package com.novellotus.iov.carvice.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.bigkoo.pickerview.model.IPickerViewData;

/**
 * Created by Rich on 2017/12/29.
 */

public class RxVehiclesType implements IPickerViewData, Parcelable {

    /**
     * creator : 李驰cyfy
     * modifier :
     * createTime : 2017-11-27 15:40:03
     * updateTime :
     * id : 7bE1GZ9PNhXZAQe1RMxu2Y
     * name : 毛倒萨的倒萨阿斯顿阿三打算打算打算打算打算的阿斯顿阿三打算打算da's
     * code : 倒萨倒萨啊倒萨倒萨的阿斯顿撒大苏打阿三达到撒旦撒a's
     * seat : 1
     * logo : car/1511768305449_file.png
     * remark : 打撒打撒打撒打撒倒萨打算
     * carType :
     * hasCar : false
     * brand_name :
     */

    private String creator;
    private String modifier;
    private String createTime;
    private String updateTime;
    private String id;
    private String name;
    private String code;
    private int seat;
    private String logo;
    private String remark;
    private String carType;
    private boolean hasCar;
    private String brand_name;

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getSeat() {
        return seat;
    }

    public void setSeat(int seat) {
        this.seat = seat;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public boolean isHasCar() {
        return hasCar;
    }

    public void setHasCar(boolean hasCar) {
        this.hasCar = hasCar;
    }

    public String getBrand_name() {
        return brand_name;
    }

    public void setBrand_name(String brand_name) {
        this.brand_name = brand_name;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.creator);
        dest.writeString(this.modifier);
        dest.writeString(this.createTime);
        dest.writeString(this.updateTime);
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.code);
        dest.writeInt(this.seat);
        dest.writeString(this.logo);
        dest.writeString(this.remark);
        dest.writeString(this.carType);
        dest.writeByte(this.hasCar ? (byte) 1 : (byte) 0);
        dest.writeString(this.brand_name);
    }

    public RxVehiclesType() {
    }

    protected RxVehiclesType(Parcel in) {
        this.creator = in.readString();
        this.modifier = in.readString();
        this.createTime = in.readString();
        this.updateTime = in.readString();
        this.id = in.readString();
        this.name = in.readString();
        this.code = in.readString();
        this.seat = in.readInt();
        this.logo = in.readString();
        this.remark = in.readString();
        this.carType = in.readString();
        this.hasCar = in.readByte() != 0;
        this.brand_name = in.readString();
    }

    public static final Parcelable.Creator<RxVehiclesType> CREATOR = new Parcelable.Creator<RxVehiclesType>() {
        @Override
        public RxVehiclesType createFromParcel(Parcel source) {
            return new RxVehiclesType(source);
        }

        @Override
        public RxVehiclesType[] newArray(int size) {
            return new RxVehiclesType[size];
        }
    };
}
